<%--
  Created by IntelliJ IDEA.
  User: Nieyu
  Date: 2016/10/14
  Time: 10:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <meta charset="utf-8" />
    <title>表一</title>
    <style>
        h2 {
            text-align: center;
            margin-bottom: 10px;
        }

        table {
            border-collapse: collapse;
            margin: 0 auto;
        }

        .courseTable {
            width: 830px;
        }

        th, td {
            width: 28px;
            font-family: "微软雅黑";
            font-size: 16px;
            vertical-align: top;
            text-align: center;
        }

        th {
            line-height: 25px;
        }

        tbody {
            width: 621px;
        }

        .expert {
            margin-top: 50px;
        }
    </style>
</head>
<body>
<input type="button" name="button1" id="button1" value="返回上一页" onclick="history.go(-1)">

<%--学生评教详情--%>
<c:if test="${!empty students.datas}">
    <div>
        <c:forEach var="student" items="${students.datas}" begin="0" end="0">
            <h2>四川旅游学院本科（${student.major}专业）课程质量（学生）评价详情表</h2>
        </c:forEach>
        <table border="1" class="courseTable">

            <tr>
                <th>序号</th>
                <th>年级</th>
                <th>课程名称</th>
                <th>学生评分</th>
                <th>应评人数</th>
                <th>实评人数</th>
                <th>参评率</th>
            </tr>
            <c:if test="${students.totalPage le 0 }">
                <tr>
                    <td colspan="7">目前还没有用户数据</td>
                </tr>
            </c:if>
            <c:if test="${students.totalPage gt 0}">
                <c:forEach items="${students.datas}" var="student" varStatus="id">
                    <tr>
                        <td>${id.index+1}</td>
                        <td>${student.grade}</td>
                        <td>${student.course}</td>
                        <td>${student.score}</td>
                        <td>${student.totalNumber}</td>
                        <td>${student.numbers}</td>
                        <td><fmt:formatNumber type="number"
                                              value="${(student.numbers/student.totalNumber)*100}"
                                              pattern="0.00" maxFractionDigits="2"/>%</td>

                    </tr>
                </c:forEach>
            </c:if>
            <tr>
                <td colspan="7">
                    <jsp:include page="/jsp/pager.jsp">
                        <jsp:param value="/councilor/councilor_info" name="url"/>
                        <jsp:param value="${students.totalPage }" name="items"/>
                        <jsp:param value="grade,department,major,course" name="params"/>
                    </jsp:include>
                </td>
            </tr>
        </table>
    </div>
</c:if>

<%--督导评教详情--%>
<c:if test="${ !empty councilors.datas}">
    <div  class="expert">
    <c:forEach var="councilor" items="${councilors.datas}" begin="0" end="0">
        <h2>四川旅游学院本科（${councilor.major}专业）课程质量（督导）评价详情表</h2>
    </c:forEach>
    <table border="1" class="courseTable">

        <tr>
            <th>序号</th>
            <th>课程名称</th>
            <th>年级</th>
            <th>班级</th>
            <th>授课教师</th>
            <th>督导评分</th>
            <th>优点</th>
            <th>存在问题</th>
            <th>建议</th>
            <th>督导</th>
        </tr>
        <c:if test="${councilors.totalPage le 0 }">
            <tr>
                <td colspan="9">目前还没有用户数据</td>
            </tr>
        </c:if>
        <c:if test="${councilors.totalPage gt 0}">
            <c:forEach items="${councilors.datas}" var="councilor" varStatus="id">
                <tr>
                    <td>${id.index+1}</td>
                    <td>${councilor.course}</td>
                    <td>${councilor.grade}</td>
                    <td>${councilor.classes}</td>
                    <td>${councilor.teacher}</td>
                    <td>${councilor.score}</td>
                    <td>${councilor.evaluate}</td>
                    <td>${councilor.problem}</td>
                    <td>${councilor.suggest}</td>
                    <td>${councilor.councilorName}</td>
                </tr>
            </c:forEach>
        </c:if>
        <tr>
            <td colspan="10">
                <jsp:include page="/jsp/pager.jsp">
                    <jsp:param value="/councilor/councilor_info" name="url"/>
                    <jsp:param value="${councilors.totalPage }" name="items"/>
                    <jsp:param value="grade,department,major,course" name="params"/>
                </jsp:include>
            </td>
        </tr>
    </table>
        </div>
</c:if>

<%--专家评教详情--%>
<c:if test="${!empty experts.datas}">
    <div class="expert">
        <c:forEach var="expert" items="${experts.datas}" begin="0" end="0">
            <h2>四川旅游学院本科（${expert.major}专业）课程质量（专家）评价详情表</h2>
        </c:forEach>
        <table border="1" class="courseTable">

            <tr>
                <th>序号</th>
                <th>课程名称</th>
                <th>授课教师</th>
                <th>年级</th>
                <th>班级</th>
                <th>学生人数</th>
                <th>专家评分</th>
            </tr>
            <c:if test="${experts.totalPage le 0 }">
                <tr>
                    <td colspan="9">目前还没有用户数据</td>
                </tr>
            </c:if>
            <c:if test="${experts.totalPage gt 0}">
                <c:forEach items="${experts.datas}" var="expert" varStatus="id">
                    <tr>
                        <td>${id.index+1}</td>
                        <td>${expert.course}</td>
                        <td>${expert.teacher}</td>
                        <td>${expert.grade}</td>
                        <td>${expert.classes}</td>
                        <td>${expert.studentNumber}</td>
                        <td>${expert.score}</td>

                    </tr>
                </c:forEach>
            </c:if>
            <tr>
                <td colspan="9">
                    <jsp:include page="/jsp/pager.jsp">
                        <jsp:param value="/course/councilor_info" name="url"/>
                        <jsp:param value="${experts.totalPage }" name="items"/>
                        <jsp:param value="grade,department,major,course" name="params"/>
                    </jsp:include>
                </td>
            </tr>
        </table>
    </div>
</c:if>
</body>
</html>

